package com.yzt.zhuju.richtext;

import com.yzt.zhuju.richtext.entity.AlbumsResponse;
import com.yzt.zhuju.richtext.entity.EmojiFatherBean;
import com.yzt.zhuju.richtext.entity.ExpressionFatherBean;
import com.yzt.zhuju.richtext.entity.GiftBaseInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * 功能：缓存的emoji
 */
public class CacheEmojiManager {

    private List<EmojiFatherBean> mEmojiList;
    private List<GiftBaseInfo> mGiftList;
    private List<ExpressionFatherBean> mExpressionList;
    private List<AlbumsResponse> albums;

    private static CacheEmojiManager mInstance;

    public static CacheEmojiManager getInstance() {
        if (mInstance == null) {
            synchronized (CacheEmojiManager.class) {
                if (mInstance == null) {
                    mInstance = new CacheEmojiManager();
                }
            }
        }
        return mInstance;
    }


    public List<EmojiFatherBean> getEmojiList() {
        if (mEmojiList == null) {
            mEmojiList = new ArrayList<>();
        }
        return mEmojiList;
    }


    public void setEmojiList(List<EmojiFatherBean> mList) {
        //System.out.println("IreneBond 保存表情: " + mList.size());
        this.mEmojiList = mList;
    }

    public List<ExpressionFatherBean> getExpressionList() {
        if (mExpressionList == null) {
            mExpressionList = new ArrayList<>();
        }
        return mExpressionList;
    }

    public void setExpressionList(List<ExpressionFatherBean> mExpressionList) {
        this.mExpressionList = mExpressionList;
    }

    public List<GiftBaseInfo> getGiftList() {
        return mGiftList;
    }

    public void setGiftList(List<GiftBaseInfo> GiftList) {
        this.mGiftList = GiftList;
    }

    public List<AlbumsResponse> getAlbums() {
        return albums;
    }

    public void setAlbums(List<AlbumsResponse> albums) {
        this.albums = albums;
    }
}
